package cn.skynethome.redisx.cacheserver;

import java.nio.channels.AsynchronousSocketChannel;

import com.talent.aio.common.ChannelContext;
import com.talent.aio.server.AioServer;
import com.talent.aio.server.intf.ServerAioListener;

import cn.skynethome.redisx.common.RedisxPacket;

public class RedisxServerAioListener implements ServerAioListener<Object, RedisxPacket, Object>
{

    @Override
    public boolean onAfterConnected(ChannelContext<Object, RedisxPacket, Object> channelContext)
    {
        // TODO Auto-generated method stub
        return true;
    }

    @Override
    public void onBeforeSent(ChannelContext<Object, RedisxPacket, Object> channelContext, RedisxPacket packet)
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void onAfterDecoded(ChannelContext<Object, RedisxPacket, Object> channelContext, RedisxPacket packet,
            int packetSize)
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void onBeforeClose(ChannelContext<Object, RedisxPacket, Object> channelContext, Throwable throwable,
            String remark)
    {
        // TODO Auto-generated method stub
        
    }

    @Override
    public boolean onAfterAccepted(AsynchronousSocketChannel asynchronousSocketChannel,
            AioServer<Object, RedisxPacket, Object> aioServer)
    {
        // TODO Auto-generated method stub
        return true;
    }

    

}
